<script setup>
import dutyImg from '@/assets/works-duty.png'
import groupImg from '@/assets/group-sending.png'
import bookingImg from '@/assets/Booking-info.png'
import messageImg from '@/assets/message.png'
import autoImg from '@/assets/touching-automatically.png'

const reachItems = [
  { img: dutyImg, label: '导购任务', alt: 'duty' },
  { img: groupImg, label: '企微群发', alt: 'group' },
  { img: bookingImg, label: '订阅消息', alt: 'booking' },
  { img: messageImg, label: '短信', alt: 'message' },
  { img: autoImg, label: '智能触达', alt: 'auto' },
]
</script>

<template>
  <div class="bottom-bottom-header">
    <div class="bottom-header-tittle">
      <img src="@/assets/get-in-touch.png" alt="" />
      <span class="tittle">触达</span>
      <span class="tittle-content">-多点触达提高转化率</span>
    </div>
  </div>

  <div class="bottom-bottom-body">
    <div class="bottom-bottom-body-data">
      <div class="bottom-bottom-data" v-for="(item, index) in reachItems" :key="index">
        <img :src="item.img" :alt="item.alt" />
        <div><span>{{ item.label }}</span></div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.bottom-bottom-header{
  flex: 2;
  display: flex;
  .bottom-header-tittle{
    margin-top: 10px;
    flex: 3;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    img{
      width: 25px;
      height: auto;
    }
  }
 }
.bottom-bottom-body{
   flex: 9;
  display: flex;
  .bottom-bottom-body-data{
     width: 80%;
     margin-left: 10%;
     display: flex;
     gap: 10px;
     .bottom-bottom-data{
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      img{
        height: 40px;
        width: auto;
      }
      div{
        font-size: 12px;
        margin-top: 5px;
      }
     }
  }
 }
 .tittle{
  font-size: 18px;
  margin-left: 8px;
  font-weight: bold;
}
.tittle-content{
  font-size: 14px;
  font-weight: bold;
  color: rgba(10, 31, 55, 1);
  margin-left: 6px;
  background-image: url('@/assets/tittle-content.png');
  background-repeat: repeat-x;
  padding-bottom: 0;
  background-position: left bottom;
}
.data-name{
  font-size: 12px;
  color: rgba(10, 31, 55, 0.6);
}
.data-value{ 
  font-size: 20px;
  color: rgba(0, 0, 0, 0.9);
  font-weight: bolder;
  margin-top: 5px;
}
</style>
